Apache RewriteRule .* index.php [NC,L] Not working

Posted by Daok on Stack Overflow See other posts from Stack Overflow or by Daok
Published on 2010-03-13T18:52:18Z Indexed on 2010/03/13 18:55 UTC
Read the original article Hit count: 308

I am trying to redirect everything to a single page from my /website/folder/ directory.

I added a simple .htaccess with this simple code (I know this would require more code in .htaccess but it's just a test).

RewriteEngine on
RewriteRule .* index.php [NC,L]

When I try :

http://127.0.0.1:8888/website/folder/fileDoesntExistMustGoIndex

I have an "Object not found 404" error and the access.log display:

127.0.0.1 - - [13/Mar/2010:13:48:31 -0500] "GET /website/folder/fileDoesntExistMustGoIndexHTTP/1.1" 404 1118

I have check the httpd.conf and I see nothing that could alter this .htaccess statement. Any idea?

© Stack Overflow or respective owner

Related posts about apache

Related posts about .htaccess